//
//  ByCoreIconImgView.m
//  beibei_ios
//
//  Created by pro on 16/5/9.
//  Copyright © 2016年 hebidu. All rights reserved.
//
#import "ByCoreIconImgView.h"

@implementation ByCoreIconImgView

- (instancetype)init {
    if (self = [super init]) {
        self.layer.cornerRadius = 45 / 2;
        self.userInteractionEnabled = YES;
        self.clipsToBounds = YES;

        UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapAction:)];
        [self addGestureRecognizer:tap];
    }
    
    return self;
}
- (instancetype)initWithFrame:(CGRect)frame {
    
    if (self = [super initWithFrame:frame]) {
        self.layer.cornerRadius = frame.size.width / 2;
        self.clipsToBounds = YES;
        self.userInteractionEnabled = YES;
        UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapAction:)];
        [self addGestureRecognizer:tap];
    }
    
    return self;
}



- (void)tapAction:(UITapGestureRecognizer *)tap {
    
    if (_uid == nil) {
        return;
    }
//    ByMineViewController *vc = [[ByMineViewController alloc] init];
//    vc.uid = _uid;
//    [self.viewController.navigationController pushViewController:vc animated:YES];
}

@end
